package com.liuxvru.project.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import com.liuxvru.common.annotation.Excel;
import com.liuxvru.common.core.domain.BaseEntity;

/**
 * 工作项对象 pro_work
 *
 * @author liuxvru
 * @date 2025-04-17
 */
@Data
@TableName(value = "pro_work")
public class Work extends BaseEntity implements Serializable
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 工作项ID */
    @TableId(value = "work_item_id", type = IdType.AUTO)
    private Long workItemId;

    /** 父级条目ID */
    @Excel(name = "父级条目ID")
    @TableField(value = "parent_item_id")
    private Long parentItemId;

    /** 工作项标题 */
    @Excel(name = "工作项标题")
    @TableField(value = "title")
    private String title;

    /** 工作项类型 */
    @Excel(name = "工作项类型")
    @TableField(value = "type")
    private String type;

    /** 项目ID */
    @Excel(name = "项目ID")
    @TableField(value = "project_id")
    private Long projectId;

    /** 项目名称 */
    @Excel(name = "项目名称")
    @TableField(value = "project_name")
    private String projectName;

    /** 指派人ID */
    @Excel(name = "指派人ID")
    @TableField(value = "assignee")
    private Long assignee;

    /** 工作项描述 */
    @Excel(name = "工作项描述")
    @TableField(value = "description")
    private String description;

    /** 风险等级 */
    @Excel(name = "风险等级")
    @TableField(value = "risk")
    private String risk;

    /** 业务价值 */
    @Excel(name = "业务价值")
    @TableField(value = "business_value")
    private Long businessValue;

    /** 故事点数 */
    @Excel(name = "故事点数")
    @TableField(value = "story_points")
    private Long storyPoints;

    /** 预估工时 */
    @Excel(name = "预估工时")
    @TableField(value = "estimated_working_hours")
    private Long estimatedWorkingHours;

    /** 登记工时 */
    @Excel(name = "登记工时")
    @TableField(value = "register_working_hours")
    private Long registerWorkingHours;

    /** 剩余工时 */
    @Excel(name = "剩余工时")
    @TableField(value = "surplus_working_hours")
    private Long surplusWorkingHours;

    /** 版本号 */
    @Excel(name = "版本号")
    @TableField(value = "version")
    private String version;

    /** 计划开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "start_date")
    private Date startDate;

    /** 计划完成日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划完成日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "due_date")
    private Date dueDate;

    /** 优先级 */
    @Excel(name = "优先级")
    @TableField(value = "priority")
    private String priority;

    /** 工作项状态 */
    @Excel(name = "工作项状态")
    @TableField(value = "status")
    private String status;

    /** 发布id */
    @Excel(name = "发布id")
    @TableField(value = "release_id")
    private Long releaseId;

    /** 关联的迭代ID */
    @Excel(name = "关联的迭代ID")
    @TableField(value = "sprint_id")
    private Long sprintId;

    /** 实际完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "completed_at")
    private Date completedAt;

    /** 完成者ID */
    @Excel(name = "完成者ID")
    @TableField(value = "completed_by")
    private Long completedBy;

    /** 子任务总数 */
    @Excel(name = "子任务总数")
    @TableField(value = "child_count")
    private Long childCount;

    /** 需求类型 */
    @Excel(name = "需求类型")
    @TableField(value = "requirement_type")
    private String requirementType;

    /** 已完成子任务数 */
    @Excel(name = "已完成子任务数")
    @TableField(value = "child_completed_count")
    private Long childCompletedCount;

    /** 进度 */
    @Excel(name = "进度")
    @TableField(value = "progress")
    private Long progress;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "created_at")
    private Date createdAt;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    @TableField(value = "created_by")
    private Long createdBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "updated_at")
    private Date updatedAt;

    /** 更新人ID */
    @Excel(name = "更新人ID")
    @TableField(value = "updated_by")
    private Long updatedBy;


}
